<template>
  <div class="header">
    <div class="header-left">
      <span class="iconfont">&#xe743;</span>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe602;</span>
      输入城市/景点/游玩主题
    </div>
    <div class="header-right">
      {{city}}
      <span class="iconfont">&#xe64a;</span>
    </div>
  </div>
</template>
<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }
}
</script>
<!--scoped 为了样式不会冲突，只对当前组件有效--->
<style lang="stylus" scoped>
@import '~styles/varibales.styl';

.header {
  display: flex;
  line-height: 0.86rem;
  background: $bgColor;
  color: #fff;

  .header-left {
    width: 0.6rem;
    height: 0.6rem;

    span {
      display: block;
      text-align: center;
      font-size: 0.6rem;
    }
  }

  .header-input {
    flex: 1;
    height: 0.62rem;
    line-height: 0.62rem;
    margin: 0.12rem 0 0 0.2rem;
    background: #fff;
    border-radius: 0.1rem;
    color: #ccc;
    padding-left: 0.2rem;
  }

  .header-right {
    width: 1.24rem;
    text-align: center;

    span {
      font-size: 0.2rem;
    }
  }
}
</style>
